package com.fjec.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 004.日志表
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@TableName("sys_log")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 用户Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 用户角色
     */
    @TableField("UserRole")
    private String userRole;

    /**
     * 访问系统 1=基础服务
2=用户系统
3=市场系统（商户系统&销售系统）
4=支付系统
5=活动系统
6=分账系统
7=通信系统
8=运维系统
     */
    @TableField("VisitSystem")
    private Integer visitSystem;

    /**
     * 系统编号 0~1024，由zookeeper维护的每个负载节点编号。
     */
    @TableField("SysCode")
    private Integer sysCode;

    /**
     * 访问接口
     */
    @TableField("Method")
    private String method;

    /**
     * 接口描述
     */
    @TableField("ApiDesc")
    private String apiDesc;

    /**
     * 访问参数
     */
    @TableField("Params")
    private String params;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }
    public Integer getVisitSystem() {
        return visitSystem;
    }

    public void setVisitSystem(Integer visitSystem) {
        this.visitSystem = visitSystem;
    }
    public Integer getSysCode() {
        return sysCode;
    }

    public void setSysCode(Integer sysCode) {
        this.sysCode = sysCode;
    }
    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
    public String getApiDesc() {
        return apiDesc;
    }

    public void setApiDesc(String apiDesc) {
        this.apiDesc = apiDesc;
    }
    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SysLog{" +
            "id=" + id +
            ", userId=" + userId +
            ", userRole=" + userRole +
            ", visitSystem=" + visitSystem +
            ", sysCode=" + sysCode +
            ", method=" + method +
            ", apiDesc=" + apiDesc +
            ", params=" + params +
            ", createTime=" + createTime +
        "}";
    }
}
